package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.TrainingProjectCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqjtu.eecs.entity.dto.PracticeCourseDTO;
import com.cqjtu.eecs.entity.vo.CourseTypeVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author
 * @since 2022-02-28
 */
@Mapper
@Repository
public interface TrainingProjectCourseMapper extends BaseMapper<TrainingProjectCourse> {

    /**
     * 通过专业代码获取专业实践课程
     * @param majorCode
     * @return
     */
    List<PracticeCourseDTO> getPracticeCourseByMajorCode(String majorCode);

    /**
     * 通过专业代码获取专业理论课程
     * @param majorCode
     * @return
     */
    List<CourseTypeVo> getTheoryCourseByMajorCode(String majorCode);
}
